import styles from "./index.module.css";
import PropTypes from "prop-types";
import { BASE_URL } from "../../utils/url";

const NoHouse = ({ children }) => {
	return (
		<div className={styles.root}>
			<img
				className={styles.img}
				src={BASE_URL + `/img/not-found.png`}
				alt="暂无数据"
			/>
            <p className={styles.msg}>{children}</p>
		</div>
	);
};

NoHouse.propTypes={
    children:PropTypes.string.isRequired
}

export default NoHouse;
